package com.zmx.common.common.enums;

/**
 * @Description: http请求方式枚举
 * @Author zhaomxr
 * @Date 2021-08-11 13:37
 */
public enum HttpRequestTypeEnum {

    GET("GET", "GET请求"),
    POST("POST", "POST请求"),
    PUT("PUT", "PUT请求"),
    DELETE("DELETE", "DELETE请求"),
    HEAD("HEAD", "类似get请求，返回的响应中没有返回体，用于获取报头"),
    CONNECT("CONNECT", "HTTP/1.1协议中预留给能够将连接改为管道方式的代理服务器"),
    TRACE("TRACE", "回显服务器收到的请求，主要用于测试或诊断"),
    OPTIONS("OPTIONS", "返回服务器针对特定资源所支持的HTTP请求方法，也可以利用向web服务器发送‘*’的请求来测试服务器的功能性");

    private String code;
    private String message;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    HttpRequestTypeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
